package org.example.entity;

import lombok.Data;

@Data
public class ChatInfo {
    private String ChatId;
    private String title;

    public ChatInfo(String chatId, String title) {
        ChatId = chatId;
        this.title = title==null?"无标题":title.length()>=15?title.substring(0,15):title;
    }
}
